package com.badibadi.mail;

import com.badibadi.mytools.Utils;
import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.layout;
import com.badibadi.uniclubber.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

/** 常数已改
 * 问方：当答方超过48小时没给出答复
 * 答方：当自己超过48小时没给出答复
 * 
 * @author Administrator
 *
 */
public class Mail16_19_17_20Activity extends Mail245Activity {

	AlertDialog al_sheding;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
//		setContentView(R.layout.activity_mail16_19_17_20);
	}

	@Override
	protected void DongTaiPeiZhi() {
		// TODO Auto-generated method stub
		TextView tishi=(TextView)this.findViewById(R.id.tishi);
		tishi.setText(getResources().getString(R.string.wx_txt_82));
		tishi.setVisibility(View.VISIBLE);
		if(rank.equals("answerer"))//答方
		{
			
			Button shedingzhixunfei=(Button)this.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_see_reason));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					LayoutInflater inflater=LayoutInflater.from(Mail16_19_17_20Activity.this);
		            View view=inflater.inflate(R.layout.yuqidafang_chakanyuanying, null);
		            
		            TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
		            refund_time.setText(""+payUserContactShow1Model.getRefund_time());
		            
		            //确定
		            Button queding=(Button)view.findViewById(R.id.queding);
		            queding.setOnClickListener(new View.OnClickListener() {
						
						@Override
						public void onClick(View v) {
							// TODO Auto-generated method stub
						
							al_sheding.dismiss();
						}
					});
		            
					al_sheding=new AlertDialog.Builder(Mail16_19_17_20Activity.this).setView(view).show();
				}
			});
		}else//问方 ok
		{
			Button shedingzhixunfei=(Button)this.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_see_reason));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					LayoutInflater inflater=LayoutInflater.from(Mail16_19_17_20Activity.this);
				      View view=inflater.inflate(R.layout.yuqiwenfang_chakanyuanying, null);
				      //工作日
				      TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
			            refund_time.setText(""+payUserContactShow1Model.getRefund_time());
			          //支付宝手续费
			            TextView alipay_charge=(TextView)view.findViewById(R.id.alipay_charge);
			            alipay_charge.setText(""+payUserContactShow1Model.getAlipay_charge());
			            
//			            alipay_charge
			            //确定
			            Button queding=(Button)view.findViewById(R.id.queding);
			            queding.setOnClickListener(new View.OnClickListener() {
							
							@Override
							public void onClick(View v) {
								// TODO Auto-generated method stub
							
								al_sheding.dismiss();
							}
						});
			            
						al_sheding=new AlertDialog.Builder(Mail16_19_17_20Activity.this).setView(view).show();
				}
			});
		}
	
		
	}


}
